package reduce.fz.com.reduce.activity;

import android.app.Service;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

import com.alibaba.fastjson.TypeReference;

import reduce.fz.com.reduce.R;
import reduce.fz.com.reduce.abstracts.AbResponseListener;
import reduce.fz.com.reduce.bean.ServiceException;
import reduce.fz.com.reduce.bean.User;
import reduce.fz.com.reduce.bean.result.Result;
import reduce.fz.com.reduce.fragment.UserDetailFragment;
import reduce.fz.com.reduce.fragment.UserDetailFragment2;
import reduce.fz.com.reduce.service.UserService;
import reduce.fz.com.reduce.service.preference.UserPreference;
import reduce.fz.com.reduce.util.ServiceBuilder;

public class UserDetailActivity2 extends BaseFragmentActivity {
    private UserService userService = ServiceBuilder.builderUserService(null);
    private UserDetailFragment2 fragment2;
    private Long uid;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setToolbarTitle("个人页面");
        uid = getIntent().getLongExtra("uid", 0l);
        if (uid == null || uid == 0) uid = UserPreference.getUser().uid;
    }

    @Override
    public Fragment getFragment() {
        fragment2 = UserDetailFragment2.create(uid);
        return fragment2;
    }




    @Override

    public void initWidget() {

    }

    @Override
    public void initListener() {

    }
}
